//
//  MYStatusPicture.swift
//  MYWeibo
//
//  Created by Magic Yu on 16/4/18.
//  Copyright © 2016年 Magic Yu. All rights reserved.
//

import UIKit

class MYStatusPicture: NSObject {

    var thumbnail_pic: String?
    
    init(dict: [String: String]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forKey key: String) {
        let largeStr = (value as! String).stringByReplacingOccurrencesOfString("thumbnail", withString: "bmiddle")
        super.setValue(largeStr, forKey: key)
    }
    
    //过滤
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    //MARK:将字典转换为字符串
    override var description: String {
        let keys = [""]
        let dict = self.dictionaryWithValuesForKeys(keys)
        return dict.description
    }
    
}
